package edu.nf.takeoutdemo.mapper;

import edu.nf.takeoutdemo.commons.base.BaseMapper;
import edu.nf.takeoutdemo.model.entity.OrderDetail;

import java.util.List;

/**
 *
 * @author zjl
 * @date 2025/10/30
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    /**
     * 批量插入订单明细记录
     * @param orderDetailList
     */
    void addBatch(List<OrderDetail> orderDetailList);


    /**
     *  查询该订单对应的菜品/套餐明细
     * @param orderId
     * @return
     */
    List<OrderDetail> getByOrderId(Long orderId);
}
